home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 342 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  942 b 

  1. Path: oldfart.ecl.wustl.edu!news
  2. From: "Klaus L. Nordstrom" <kln@news.hpn.org>
  3. Newsgroups: comp.lang.c,comp.lang.c++
  4. Subject: Re: RANDOM NUMBER GENERATOR
  5. Date: 3 Jan 1996 22:53:22 GMT
  6. Organization: Harry Trueman National Park, Independence, MO.
  7. Message-ID: <4cf1d2$1ts@oldfart.ecl.wustl.edu>
  8. References: <ABg4lwmmK4@lh.ioffe.rssi.ru>
  9. NNTP-Posting-Host: dos10.cec.wustl.edu
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 1.2N (Windows; I; 16bit)
  14.  
  15. "Eugene I Levin" <Levin@lh.ioffe.rssi.ru> wrote:
  16. >
  17. >Tom, you are RIGHT! The congruent generator which is employed in
  18. >rand() is the bad one! And everybody know that.
  19.  
  20. If one uses <stdlib.h>, does one not automatically get access to
  21. srand48() and drand48()? These routines generates good quality random
  22. numbers with long periodicities.
  23.  
  24. Also, you may wish to check "numerical Recipies in C", authored by
  25. Teukolsky and Press.
  26.  
  27. -kln.
  28.  
  29.